﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:Digit09="clr-namespace:SegmentDisplay.Common.Digit09">


    <!--default 9 segments-->
    <ControlTemplate x:Key="TemplateSegment09" TargetType="{x:Type Digit09:SegmentDigit09}">
        <Viewbox>
            <Grid >
                <Polygon Name="SegmentElementAB" Points="9,4 13,0 39,0 43,4 39,8 13,8" Fill="{TemplateBinding SegmentAB}" />
                <Polygon Name="SegmentElementC" Points="44,5 48,9 46,35 42,39 38,35 40,9" Fill="{TemplateBinding SegmentC}" />
                <Polygon Name="SegmentElementD" Points="42,41 46,45 44,71 40,75 36,71 38,45" Fill="{TemplateBinding SegmentD}" />
                <Polygon Name="SegmentElementJM" Points="7,40 11,36 37,36 41,40 37,44 11,44" Fill="{TemplateBinding SegmentJM}"/>
                <Polygon Name="SegmentElementEF" Points="5,76 9,72 35,72 39,76 35,80 9,80" Fill="{TemplateBinding SegmentEF}"/>
                <Polygon Name="SegmentElementG" Points="6,41 10,45 8,71 4,75 0,71 2,45" Fill="{TemplateBinding SegmentG}"/>
                <Polygon Name="SegmentElementH" Points="8,5 12,9 10,35 6,39 2,35 4,9" Fill="{TemplateBinding SegmentH}"/>
                <Polygon Name="SegmentElementO" Points="39,9 38,23 31,35 22.5,35 37,9" Fill="{TemplateBinding SegmentO}"/>
                <Polygon Name="SegmentElementR" Points="25.5,45 11,71 9,71 10,57 17,45" Fill="{TemplateBinding SegmentR}"/>
            </Grid>
        </Viewbox>
    </ControlTemplate>

    <!--Segment9-->
    <Style x:Key="SegmentDigit09Style" TargetType="{x:Type Digit09:SegmentDigit09}">
        <Setter Property="Template" Value="{StaticResource TemplateSegment09}" />
    </Style>

</ResourceDictionary>